package com.rd.student.jiaji.class2.shirui.linklist;

import java.util.LinkedList;

public class LinkedListTest {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        Student student1 = new Student("石睿", "计算机", 2);
        Student student2 = new Student("石睿", "计算机", 2);
        Student student3 = new Student("石睿", "计算机", 2);
        Student student4 = new Student("石睿", "计算机", 2);
        Student student5 = new Student("石睿", "计算机", 2);
        Student student6 = new Student("石睿", "计算机", 2);
        list.add(student1);
        list.add(student2);
        list.add(student3);
        list.add(student4);
        list.add(student5);
        list.add(student6);

       for (int i=0;i<list.size();i++){
           System.out.println(list.get(i));
       }

    }


}
